package com.example.http.req;

import com.alibaba.fastjson.JSON;
import com.example.http.req.raw.RawEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 关于http请求处理
 * @author zhouxl
 * @DATE 2021/8/10
 * @descriptoin
 */
@RestController
@RequestMapping("/api/raw")
public class RawRequestController {

    @RequestMapping("putInfo")
    public String putInfo(@RequestBody RawEntity rawEntity){
        return JSON.toJSONString(rawEntity);
    }

}
